
const methods = {
    aa:'12345l',
    dd:{
        addmath : function (a,b) {
            return a+b;
        },
        addthree: function (a,b,c) {
            return a+b+c;
        }
    }
}


if (methods.dd.addmath) {
    console.log('addmath')
}
if (methods.dd.addthree){
    console.log('addthree')
}
if (methods.dd.inei){
    console.log('inei')
}
